<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>错误页面 - AI简历分析</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f8f9fa;
            padding: 20px;
        }
        .error-container {
            max-width: 600px;
            margin: 50px auto;
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body>
<div class="error-container">
    <h1 class="text-danger mb-4">❌ 系统错误</h1>

    <div class="alert alert-danger" role="alert">
        <h4 class="alert-heading">错误信息</h4>
        <p th:text="${errorMsg}" class="mb-0"></p>
    </div>

    <div class="alert alert-info" role="alert">
        <strong>状态码：</strong> <span th:text="${status}"></span>
    </div>

    <div class="mt-4">
        <a th:href="@{/admin/interview_admin}" class="btn btn-primary me-2">返回首页</a>
        <a th:href="@{/auth/login}" class="btn btn-outline-secondary">重新登录</a>
    </div>

    <!-- 仅开发环境显示详细错误信息 -->
    <div th:if="${exception != null}" class="mt-4">
        <details>
            <summary>详细错误信息（开发模式）</summary>
            <pre th:text="${exception}" class="text-muted small"></pre>
        </details>
    </div>
</div>
</body>
</html>